package com.sky.service.admin;

import com.sky.dto.EmployeeDTO;
import com.sky.dto.EmployeeLoginDTO;
import com.sky.dto.EmployeePageQueryDTO;
import com.sky.entity.Employee;
import com.sky.result.PageResult;

public interface EmployeeService {

    /**
     * 员工登录
     * @param employeeLoginDTO
     * @return
     */
    Employee login(EmployeeLoginDTO employeeLoginDTO);

    /**
     * 员工分页模糊查询展示
     *
     * @param employeePageQueryDTO
     * @return
     */
    PageResult selectPage(EmployeePageQueryDTO employeePageQueryDTO);

    /**
     * 员工新增
     * @param employeeDTO
     */
    void insert(EmployeeDTO employeeDTO);

    /**
     * 状态修改
     * @param status
     */
    void states(String status, Long id);

    /**
     * 根据id回显
     * @param id
     * @return
     */
    Employee selectById(Long id);

    /**
     * 更新员工信息
     * @param employeeDTO
     */
    void update(EmployeeDTO employeeDTO);
}
